home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Aventura / freaky-fun.swf / scripts / frame_29 / PlaceObject2_240_33 / CLIPACTIONRECORD onClipEvent(enterFrame).as
Encoding:
Text File  |  2006-06-07  |  262 b   |  15 lines

  1. onClipEvent(enterFrame){
  2.    this._y += 5;
  3.    if(this._y >= 1500)
  4.    {
  5.       this._y = 0;
  6.       this._x = random(300) + 100;
  7.       gotoAndStop(1);
  8.    }
  9.    if(this.tester.hitTest(_root.hero))
  10.    {
  11.       _root.score += 1000;
  12.       this.play();
  13.    }
  14. }
  15.